<ul>
<?php
// requires a $pages variable to have been defined beforehand
// alphabetization eventually
if(count($pages) > 0) {
  foreach($pages as $page) {
    $pagename = $page['name'];
    echo "<li>";
    echo "<a href='?show=$pagename'>$pagename</a>";
    echo "</li>\n";
  }
} else {
  echo "<p>[nuthin]</p>";
}
?>
</ul>